package com.cyzy.controller;

import com.cyzy.domain.TCollect;
import com.cyzy.dto.ResponseData;
import com.cyzy.service.TCollectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/collect")
public class TCollectController {

    @Autowired
    private TCollectService tCollectService;

    @PostMapping("/addCollect")
    public ResponseData addCollect(@RequestBody TCollect tCollect) {
        return tCollectService.addCollect(tCollect);
    }
}
